package nj.yb.entity.request;

import com.alibaba.fastjson.annotation.JSONField;

public class AddFriendRequest {
    @JSONField(ordinal = 1)
    private final String type = RequestType.ADD_FRIEND;
    @JSONField(ordinal = 2)
    private Integer userId;
    @JSONField(ordinal = 3)
    private String targetUser;


    public String getType() {
        return type;
    }

    public String getTargetUser() {
        return targetUser;
    }

    public void setTargetUser(String targetUser) {
        this.targetUser = targetUser;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "AddFriendRequest{" +
                "type='" + type + '\'' +
                ", userId=" + userId +
                ", targetUser='" + targetUser + '\'' +
                '}';
    }
}
